package com.webside.subject.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.webside.base.basemapper.BaseMapper;
import com.webside.subject.model.SubjectEntity;
import com.webside.subject.model.SubjectSeriesEntity;

public interface SubjectSeriesMapper extends BaseMapper<SubjectSeriesEntity, Long> {
	/**
	 * 查询所有
	 * @return
	 */
	List<SubjectSeriesEntity> selectAllSubject();
	List<String> selectAllSubjectName();
	List<Map<String,Object>> selectSubjectName();
	List<SubjectSeriesEntity> selectSubjects(SubjectSeriesEntity subjectseries);
	SubjectSeriesEntity  selectBySubjectSeries(SubjectSeriesEntity subjectseries);
	List<SubjectSeriesEntity> querySubject(Map<String,Object> param);
	@Override
	List<SubjectSeriesEntity> queryListByPage(Map<String, Object> parameter);
	/**
	 * 新增
	 */
	void addSubject(SubjectSeriesEntity subjectseries);
	@Override
	int insert(SubjectSeriesEntity subjectseries);
	/**
	 * 
	 * 删除
	 */
	int deleteSubject(List<String> SubjectId);
	/**
	 * 修改
	 *
	 */
	void updateSubject(SubjectSeriesEntity subjectseries);
	@Override
	int update(SubjectSeriesEntity subjectseries);
	/**
	 * 查询id对应绑定数
	 * @param subjectId
	 * @return
	 */
	int queryCountBySubjectId(int subjectId);
	
	List<HashMap<String, Object>> querySeriesBySubjectId(int subjectId);
	//查询
	List<SubjectSeriesEntity> querySeriesBySubjectId(Map<String, Object> parameters);
	//删除
	void deleteBySubjectSeries(SubjectSeriesEntity subjectseries);
	//查询显示列表
	List<SubjectSeriesEntity> querySubNameSeriesBySubjectId(Map<String, Object> parameters);
}
